package com.star.test.entity;

import lombok.Data;

@Data
public class Students {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getScore1() {
        return score1;
    }

    public void setScore1(String score1) {
        this.score1 = score1;
    }

    public String getScore2() {
        return score2;
    }

    public void setScore2(String score2) {
        this.score2 = score2;
    }

    public String getScore3() {
        return score3;
    }

    public void setScore3(String score3) {
        this.score3 = score3;
    }

    private String name;
    private String score1;
    private String score2;
    private String score3;

    public int total() {
        return Integer.parseInt(score1) + Integer.parseInt(score2) + Integer.parseInt(score3);
    }
}
